package com.xx.xunyou.service;

import com.xx.xunyou.entity.item.chizhuzaixiang.vo.ChizhuzaixiangVo;
import com.xx.xunyou.entity.item.youlezaixiangcun.Youlezaixiangcun;
import com.xx.xunyou.entity.item.youlezaixiangcun.YoulezaixiangcunImage;
import com.xx.xunyou.entity.item.youlezaixiangcun.vo.YoulezaixiangcunVo;

import java.util.List;
import java.util.Map;

/**
 * @program: xunyou-parent
 * @author: zhl
 * @create: 2019-04-18
 **/
public interface YoulezaixiangcunSerivce {
    /**
     * 查询条数
     * @param map
     * @return
     */
    Integer queryListCountToManager(Map<String,Object> map);

    /**
     * 查询数据
     * @param map
     * @return
     */
    List<Map> queryListToManager(Map<String,Object> map);

    /**
     * 添加数据
     * @param youlezaixiangcun
     * @param images
     */
    void insert(Youlezaixiangcun youlezaixiangcun, String images);

    /**
     * 根据的查询
     * @param youlezaixiangcunId
     * @return
     */
    Youlezaixiangcun queryByIdToManager(Integer youlezaixiangcunId);

    /**
     * 修改
     * @param youlezaixiangcun
     * @param images
     */
    void update(Youlezaixiangcun youlezaixiangcun, String images);

    /**
     * 查询图片
     * @param youlezaixiangcunId
     * @return
     */
    List<YoulezaixiangcunImage> queryImagesByIdToManager(Integer youlezaixiangcunId);

    /**
     * 删除
     * @param youlezaixiangcunId
     */
    void delete(Integer youlezaixiangcunId);

    /**
     * 推荐
     * @param youlezaixiangcunId
     */
    void recommend(Integer youlezaixiangcunId);

    /**
     * 取消推荐
     * @param youlezaixiangcunId
     */
    void notRecommend(Integer youlezaixiangcunId);

    /**
     * 查询数据给app
     * @param map
     * @return
     */
    List<YoulezaixiangcunVo> queryListToAPPIndex(Map<String, Object> map);
}
